package com.iims.finance.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.iims.finance.domain.CmisCwIncomeAffirm;
import com.iims.finance.vo.resp.CmisCwIncomeAffirmDetailVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author fanpei
 * @date 2021/7/9 22:28
 */
public interface CmisCwIncomeAffirmMapper extends BaseMapper<CmisCwIncomeAffirm> {
    /**
     * 条件筛选收入确认
     *
     * @param incomeAffirm
     * @return
     */
    List<CmisCwIncomeAffirmDetailVo> selectCwIncomeAffirmList(CmisCwIncomeAffirm incomeAffirm);

    /**
     * 查询合同所属收入确认列表
     * @param contractId
     * @return
     */
    List<CmisCwIncomeAffirmDetailVo> selectContractCwIncomeAffirmList(@Param("contractId") Long contractId);

    /**
     * 查询收入确认详情
     *
     * @return
     */
    CmisCwIncomeAffirmDetailVo selectCwIncomeAffirmDetail(@Param("affirmId") Long affirmId);
}
